package com.dps.omc.shell;

import javax.websocket.Session;
import java.io.IOException;

/**
 * Created by lip on 2016-07-12.
 */
public class WsSender {

    private Session session;
    public WsSender(Session session)
    {
        this.session = session;
    }

    public void send(String msg) throws IOException {
        session.getBasicRemote().sendText(msg);
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }
}
